package com.order.web;
import java.util.*;

import javax.servlet.*;
import java.io.*;
import javax.servlet.http.*;

import com.order.dao.VegeEvaQuery;
import com.order.dao.bean.VegeEvaluate;
public class VegeEvaServlet extends HttpServlet{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,IOException
    {
    	doPost(request,response);
    }
    
    public void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,IOException
    {
    	
    	response.setContentType("text/html;charset=gbk");
    	request.setCharacterEncoding("gbk");
    	List<VegeEvaluate> list = VegeEvaQuery.queryAll();

    	if(list!=null)
    	{
    		request.setAttribute("vegeEvaList",list);	
       		RequestDispatcher rd=request.getRequestDispatcher("/vegeEvaluate.jsp");
            rd.forward(request,response);
    	}	

    }
  }